
path_1 = r"C:\Users\ZGS\Desktop\herhome\验证appium\其他会员手机号.text"
path_2 = r"C:\Users\ZGS\Desktop\herhome\验证appium\普通会员手机号.text"
path_3 = r"C:\Users\ZGS\Desktop\herhome\验证appium\账号不存在(未注册).text"

def file(path, file_name):
    with open(path, 'r', encoding='utf-8') as f:
        plist = f.readlines()
        print(list(set(plist)))

    with open(file_name, 'w', encoding='utf-8') as f:
        f.write(''.join(list(set(plist))))

file_name = '黄金以上会员.txt'
file_name1 = '普通会员.txt'
file_name2 = '未实名会员.txt'

# 黄金
file(path_1, file_name)
# 普通
file(path_2, file_name1)
# 未实名
file(path_3, file_name2)
